home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 November
/
PCWorld_2006-11_cd.bin
/
multimedia
/
thumbnailer
/
setup.exe
/
{app}
/
Templates
/
popup.thm
next >
Wrap
Text File
|
2004-12-23
|
7KB
|
325 lines
#######################################################
# ThumbNailer HTML template.
# Generated by Smaller Animals ThumbNailer 8.0.3.7
#
# This template uses a simple Javascript function
# to create a popup window that displays the source image, when
# the user clicks the thumbnail.
#
#######################################################
############################
# Thumbnail page definitions
####
# Thumbnail page definition
@:thumbnailpage
@+
<html>
<head>
<title>Thumbnails from &ChopRight(Parent(srcDir), 1)</title>
</head>
<script language=javascript>
# this shows our window.
function showPopup(filename, w, h)
{
var parameters = "scrollbars=no,status=no,toolbar=no,width=" + w + ",height=" + h;
window.open(filename, "Picture", parameters);
}
</script>
<body bgcolor="#c0c0ff" link="#fa0064" alink="#ffff00" vlink="#6400fa" text="#000000">
<center>
<font face="Arial Black" size=+2>Thumbnails from &ChopRight(Parent(srcDir), 1)</font>
<p>
<table border=0 cellspacing=0 cellpadding=1 width="70%">
# each thumbnailgroup is a single table row
@@thumbnailgroup
@@thumbnailgroup
@@thumbnailgroup
</table>
#previous / next links
<br>@@thumbprevpage@@thumbpnsep@@thumbnextpage
</center>
</body>
</html>
@-
####
# Thumbnail group (a table row, in this case)
@:thumbnailgroup
@+
<tr>
<td><table bgcolor="#d0d0ff" height=120 width=100%><tr><td>@@thumbnail</td></tr></table></td>
<td><table bgcolor="#d0d0ff" height=120 width=100%><tr><td>@@thumbnail</td></tr></table></td>
<td><table bgcolor="#d0d0ff" height=120 width=100%><tr><td>@@thumbnail</td></tr></table></td>
</tr>
@-
####
# Thumbnail element definition
@:thumbnail
@+
# make the popup window 20 pixels wider and 26 pix higher than the
# image itself. there is an automatic padding on the left and top
# sides of any window opened from IE, so this balances out the white
# space on the other sides.
&VarSet("WinWidth", Add(20, XDim(srcFile)))
&VarSet("WinHeight", Add(26, YDim(srcFile)))
#
# instead of opening an HTML page, this link calls a javascript
# function called showPopup (above). the function launches the
# popup window with the file and dimensions we provide here.
<p><center>
<a href=&Q(JoinX(7, "javascript:showPopup('", RelFile(srcPage, thmPage), "', ", T(WinWidth), ",", T(WinHeight), ")"))>
<img style="" src=&Q(RelFile(thmFile, thmPage)) hspace=0 vspace=0 border=0 width=&XDim(thmFile) height=&YDim(thmFile) &Join("ALT=\"", Name(srcFile)) &Join(SizeK(srcFile), "K\"")>
</a>
<font face="Arial Black" size=1>
<br>&Name(srcFile)
</font>
</center>
@-
####
# Default thumbnail element (used when there are no images left)
@:defaultthumbnail
@+
@-
####
# Thumbnail page previous page link
@:thumbprevpage
@+
<font face="Arial Black" size=+2>
<a href=&Q(RelFile(prevPage, thmPage))>Previous Page</a>
</font>
@-
####
# Thumbnail page previous / next separator
@:thumbpnsep
@+
<font face="Arial Black" size=+2>
|
</font>
@-
####
# Thumbnail page next page
@:thumbnextpage
@+
<font face="Arial Black" size=+2>
<a href=&Q(RelFile(nextPage, thmPage))>Next Page</a>
</font>
@-
############################
# Source page definitions
####
# Source page definition
#
# this is a very basic page that really only does one thing:
# gives us a background color in the popup window. if you want
# to add more stuff to this page (so it will appear in the popups),
# be sure to change the popup dimensions (see WinWidth, WinHeight)
# in the thumbnail section, above.
@:sourcepage
@+
<html>
<head>
<title>&Name(srcFile)</title>
</head>
<body bgcolor="#f9f9ff" link="#fa0064" alink="#ffff00" vlink="#6400fa" text="#000000">
<center>
<img src=&Q(RelFile(srcFile, srcPage)) width=&Q(XDim(srcFile)) height=&Q(YDim(srcFile)) &Join("ALT=\"", Name(srcFile)) &Join(SizeK(srcFile), "K\"")><font size="+0" face="Arial, Helvetica">
</center>
</body>
</html>
@-
####
# Source page source page link
@:sourceprevpage
@+
<font size="+0" face="Arial, Helvetica">
<a href=&Q(RelFile(prevPage, srcPage))>Previous Image</a>
</font>
@-
####
# Source page previous / next separator
@:sourcepnsep
@+
<font size="+0" face="Arial, Helvetica">
|
</font>
@-
####
# Source page next page
@:sourcenextpage
@+
<font size="+0" face="Arial, Helvetica">
<a href=&Q(RelFile(nextPage, srcPage))>Next Image</a>
</font>
@-
############################
# Index page definitions
####
# Index page definition
@:indexpage
@+
<html>
<head>
<title>Index</title>
</head>
<body bgcolor="#f9f9ff" link="#fa0064" alink="#ffff00" vlink="#6400fa" text="#000000">
<p><center>
<table width="80%">
@@idxchildgroup
</table>
</center>
</body>
</html>
@-
####
# Index child group definition (thumbnail pages within this folder)
@:idxchildgroup
@+
<tr>
<td valign=top>@@idxchildelement</td>
<td valign=top>@@idxchildelement</td>
<td valign=top>@@idxchildelement</td>
<td valign=top>@@idxchildelement</td>
</tr>
@-
####
# Index child element definition
@:idxchildelement
@+
<center><font size="+0" face="Arial, Helvetica">
<a href=&Q(RelFile(idxTargetPage, idxPage))>&Join3(_FileParent(idxTargetPage), "\\", NoExt(idxTargetPage))</a>
</font>
<br>
<a href=&Q(RelFile(idxTargetPage, idxPage))><img src=&Q(RelFile(idxTargetThm, idxPage))></a></center>
@-
####
# Default index child element definition
@:defaultidxchildelement
@+
@-
####
# Index subfolder index group definition (thumbnail pages within this folder)
@:idxsubidxgroup
@+
<tr>
<td valign=top>@@idxsubidxelement</td>
<td valign=top>@@idxsubidxelement</td>
<td valign=top>@@idxsubidxelement</td>
<td valign=top>@@idxsubidxelement</td>
</tr>
@-
####
# Index subfolder index element definition
@:idxsubidxelement
@+
<center><font size="+0" face="Arial, Helvetica">
<a href=&Q(RelFile(idxTargetPage, idxPage))>&ChopRight(Parent(idxTargetPage), 1)</a>
</font><br>
<a href=&Q(RelFile(idxTargetPage, idxPage))><img src=&Q(RelFile(idxTargetThm, idxPage))></a>
</center>
@-
####
# Default index subfolder index element definition
@:defaultidxsubidxelement
@+
@-
####
# Index section separator definition
@:idxsectionseparator
@+
<hr width="80%">
@-
####
# Master index page definition
@:masteridxpage
@+
<html>
<head>
<title>Index</title>
</head>
<body bgcolor="#f9f9ff" link="#fa0064" alink="#ffff00" vlink="#6400fa" text="#000000">
<p><center>
@@masteridxgroup
</center>
</body>
</html>
@-
####
# Master index page, link group definition
@:masteridxgroup
@+
<table border=0>
<tr><td>
@@masteridxelement
</td></tr>
<tr><td>
@@masteridxelement
</td></tr>
<tr><td>
@@masteridxelement
</td></tr>
<tr><td>
@@masteridxelement
</td></tr>
</table>
@-
####
# Master index page element definition
@:masteridxelement
@+
<a href=&Q(RelFile(idxTargetPage, idxPage))><img src=&Q(RelFile(idxTargetThm, idxPage))></a>
<br>
<font size="+0" face="Arial, Helvetica">
&ChopRight(Parent(idxTargetPage), 1)
<p>
</font>
@-